define(function(require, exports, module) {
	
	require("layout");
	require("plugins/ueditor/init");
	
	module.exports = function() {
		var ue = {
			destroy:function() {}
		};
		return {
			data: {
				
			},
			methods: {
				init:function(params) {
					ue = UE.getEditor('demoEditor');
					ue.ready(function(){
					    //设置编辑器的内容
					    ue.setContent('hello');
					    //获取html内容，返回: <p>hello</p>
					    var html = ue.getContent();
					    console.log(html);
					    //获取纯文本内容，返回: hello
					    var txt = ue.getContentTxt();
					    console.log(txt);
					});
					return true;
				},
				destroy:function() {
					ue.destroy();
				}
			}
		}
	}

});